package com.itheima.tanhua.api.mongo;

import com.itheima.tanhuan.CommentType;
import com.itheima.tanhuan.pojo.mongo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

public interface CommentApi {

    List<Comment> findByMovementId(ObjectId objectId, CommentType comment);

    Boolean commentPost(Comment comment1);

    Integer likeCommentCount(String id);

    Integer dislikeCommentCount(String id);

    Comment findById(String id);

    Boolean deletLike(String uid, String publishId, int type);

    Integer likeComment(String movementId);

    Boolean isLike(String publishId, int commentType, Long uid);

    Integer save(Comment comment1);

    List<Comment> findByUserId(Long uid, CommentType comment, Long page, Long pagesize);
}